package com.Brewing.springboot.service.TpBgm;

import java.util.List;

import org.n3r.idworker.Sid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.Brewing.springboot.entity.TpBgm.TpBgm;
import com.Brewing.springboot.mapper.TpBgmMapper;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Company: </p>
 * @author  庄磊
 * @date	2018年12月3日 下午2:33:37 
 * @version 1.0
 */
@Service
public class BgmServiceImpl implements BgmService {
	@Autowired
	private TpBgmMapper tpBgmMapper;
	
	@Autowired
	private Sid sid;
	@Override
	public List<TpBgm> queryBgmList() {
		// TODO Auto-generated method stub
		return tpBgmMapper.selectAll();
	}
	
	@Transactional(propagation = Propagation.SUPPORTS)
	@Override
	public TpBgm queryBgmById(String bgmId) {
		return tpBgmMapper.selectByPrimaryKey(bgmId);
	}
}
